package at.fhh.se.tjr.client.view;

import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JPanel;

import at.fhh.se.tjr.client.controller.Controller;

public class NavigationPanel extends JPanel{

	private JButton nextMessage, toogleTracing, sendCheckMsg, newRandomId;
	
	public NavigationPanel(Controller controller){
		this.setLayout(new GridLayout(4,1));
		JPanel panel = new JPanel();
		this.add(panel);
		panel = new JPanel();
		this.add(panel);
		
		nextMessage = new JButton("Next Message");
		nextMessage.setSize(100, 100);
		nextMessage.addActionListener(controller);
		nextMessage.setFont(Controller.FONT);
		toogleTracing = new JButton("Toogle Tracing");
		toogleTracing.addActionListener(controller);
		toogleTracing.setFont(Controller.FONT);
		sendCheckMsg= new JButton("Send CheckMsg");
		sendCheckMsg.addActionListener(controller);
		sendCheckMsg.setFont(Controller.FONT);
		newRandomId= new JButton("New Random ID");
		newRandomId.addActionListener(controller);
		newRandomId.setFont(Controller.FONT);
		this.add(nextMessage);
		this.add(toogleTracing);
		this.add(sendCheckMsg);
		this.add(newRandomId);
	}
	

	public JButton getNextMessage() {
		return nextMessage;
	}

	public void setNextMessage(JButton nextMessage) {
		this.nextMessage = nextMessage;
	}

	public JButton getToogleTracing() {
		return toogleTracing;
	}

	public void setToogleTracing(JButton toogleTracing) {
		this.toogleTracing = toogleTracing;
	}


	public JButton getSendCheckMsg() {
		return sendCheckMsg;
	}


	public JButton getNewRandomId() {
		return newRandomId;
	}
	
}
